﻿using App.Common;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LevelMap : MonoBehaviour
{
    [HideInInspector]
    public List<hexagon> hexagons;

    public void InitLevel()
    {
        //Debug.Log("On Scene");
        for (int i = 0; i < this.transform.childCount; i++)
        {
            hexagon child = this.transform.GetChild(i).GetComponent<hexagon>();
            //Debug.Log(child.gameObject.name);
            child.transform.position = Data.Instance.getWorldPos(child.Pos);
            //Debug.Log(getWorldPos(child.Pos).ToString());
        }
    }

    // Start is called before the first frame update
    void Start()
    {
    }

    private void OnEnable()
    {
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
